package com.example.pojo;

import java.io.Serializable;

public class Perm implements Serializable {
    private Integer id;

    private String name;

    private String code;

    private String link;

    private Integer parentId;

    private String type;

    private String status;

    private static final long serialVersionUID = 1L;

    public Perm() {
    }

    public Perm(String name, String code, String link, Integer parentId, String type, String status) {
        this.name = name;
        this.code = code;
        this.link = link;
        this.parentId = parentId;
        this.type = type;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Perm{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", link='" + link + '\'' +
                ", parentId=" + parentId +
                ", type='" + type + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}